package com.time.auth.api;

import com.time.auth.entity.AuthAdminUserDTO;
import com.time.auth.entity.AuthUserDTO;
import com.time.auth.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;


@FeignClient(name = "blog-auth-dev")
public interface UserFeignService {

    /**
     * 获取用户信息
     *
     * @param authUserDTO 用户信息
     * @return 用户信息结果
     */
    @RequestMapping("/user/getUserInfo")
    public Result<AuthUserDTO> getUserInfo(@RequestBody AuthUserDTO authUserDTO);

    /**
     * 获取管理员用户信息
     *
     * @param authAdminUserDTO 管理员用户信息
     * @return 管理员用户信息结果
     */
    @RequestMapping("/admin/getAdminUserInfo")
    public Result<AuthAdminUserDTO> getAdminUserInfo(@RequestBody AuthAdminUserDTO authAdminUserDTO);
}
